/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package vek.Update;

import java.util.Timer;

/**
 * Class to scheduele updates.
 * Uses the Singleton software pattern, since there must only be one.
 * If there are more than 1 UpdateTimer, 2 updates could occur at the same time, which could crash the system.
 * @author Administrator
 */
public class UpdateTimer extends Timer{
    
    private static UpdateTimer updatetimer;
    
    public static UpdateTimer getUpdateTimer()
    {
        if(updatetimer == null)
        {
            updatetimer = new UpdateTimer("updatetimer");
            return updatetimer;
        }
        else
        {
            return updatetimer;
        }
    }


    private UpdateTimer(String s) {
        super(s);
    }

}
